home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / Andromedia / _install / install_unbundled < prev    next >
Text File  |  1997-03-10  |  3KB  |  154 lines

  1. #! /bin/sh  
  2. #
  3. #    Installation shell script for Catalyst CDware
  4. #
  5. #       Usage: install -m<mountpoint> -p<productpath>
  6. #
  7. #    Created:     June 12, 1991
  8. #       Last Revised:   May 28, 1996
  9. #                 
  10. #    Use this installation script to install your product from Catalyst CDware
  11. #
  12. #
  13. #    For technical support, please call.
  14. #        +1 415 336.3742 (CDware SPARC) or +1 415 336.3941 (CDware x86)
  15. #
  16. #    get command line parameters
  17. #
  18.  
  19. # function for error exiting
  20.  
  21. end_it () {
  22. echo " "
  23.   echo "Hit return to end ... "
  24.   read answer
  25.  
  26. exit 0
  27. }
  28.  
  29.  
  30. #    set PRODUCT_SIZE to the size of your product in kbytes     
  31.  
  32. PRODUCT_SIZE=284
  33.  
  34. #
  35. #    get complete paths
  36. #
  37. #
  38. #    get location of installation directory 
  39. ##
  40. #echo
  41. #echo "Please enter the absolute path name for a temporary working directory in which"
  42. #echo "the ARIA evaluation programs installation can begin."
  43. #echo
  44. #echo
  45. #echo "Working directory: "
  46. INSTALL_DIR=/tmp/aria
  47.  
  48. #
  49. #    verify the installation directory exists and is a directory
  50. #
  51. if [ ! -d "$INSTALL_DIR" ]
  52. then
  53.     echo "Creating $INSTALL_DIR ..."
  54.     mkdir $INSTALL_DIR
  55.     if [ ! -d "$INSTALL_DIR" ]
  56.     then
  57.         echo
  58.         echo
  59.         echo "Could not create the installation directory."
  60.         echo
  61.         echo "Exiting the installation script."
  62.                 end_it
  63.     fi
  64. fi
  65.  
  66. #
  67. #    verify write permission for the installation directory
  68. #
  69. if [ ! -w "$INSTALL_DIR" ]
  70. then
  71.     echo
  72.     echo
  73.     echo "You do not have write permission for the installation directory: "
  74.     echo $INSTALL_DIR
  75.     echo
  76.         echo
  77.     echo "Exiting the installation script."
  78.         end_it
  79. fi
  80.  
  81. #
  82. #    verify free disk space
  83. #
  84. echo    
  85. echo    "Verifying free disk space..."
  86. FREE_SPACE=0
  87. df=/tmp/FREE.$$
  88. #
  89. # WARNING:
  90. # --------
  91. # For Solaris 2.4, the df line below will need to be updated because
  92. # the standard output of the df command has changed in Solaris 2.4
  93. #
  94. /usr/bin/df -k $INSTALL_DIR | sed /kbytes/d | sed -e '3,$d' | sed -e '1,$s/  */ /g' > $df
  95.  
  96. case `/usr/bin/wc -l $df | sed -e 's/^ *//' | cut -f1 -d" " ` in
  97.     1) FREE_SPACE=`cat $df | cut -f4 -d" "` ;; 
  98.     2) FREE_SPACE=`cat $df | sed 1d | sed 's/^ *//' | cut -f3 -d" "` ;; 
  99. esac
  100.  
  101. if [ -n $FREE_SPACE ]
  102. then
  103.     if [ $FREE_SPACE -lt $PRODUCT_SIZE ]
  104.     then
  105.         echo
  106.         echo
  107.         echo "The product installation requires $PRODUCT_SIZE kbytes of"
  108.         echo "free disk space. There is only $FREE_SPACE kbytes of free" 
  109.         echo "disk space in the selected filesystem.  Please free up some"
  110.         echo "disk space and try this installation again."
  111.         echo
  112.         echo "Exiting the installation script."
  113.             end_it     
  114.     fi
  115. fi
  116. /bin/rm $df 2>/dev/null
  117.  
  118. #
  119. #    copy binaries to installation directory
  120. #
  121. echo 
  122. echo "Copying files to "$INSTALL_DIR"..."
  123. echo
  124. #
  125. # uncomment the following line to do the actual copy
  126. #
  127.  
  128.  
  129. cp $COMPANY_DIR/_install/aria1_0_sunos5_4_tar.Z $INSTALL_DIR
  130.  
  131. cd $INSTALL_DIR
  132.  
  133. uncompress aria1_0_sunos5_4_tar.Z
  134.  
  135. echo " "
  136. echo " Uncompressing aria1_0_sunos5_4_tar.Z ..."
  137. echo " "
  138. echo " "
  139. echo " Extracting aria1_0_sunos5_4_tar..."
  140.  
  141. tar xvf aria1_0_sunos5_4_tar
  142.  
  143. cd $INSTALL_DIR/Aria1.0SunOS5.4
  144.  
  145. ./aminstall
  146.  
  147. echo " "
  148. echo " "
  149. #echo " Installation was a success."
  150. sleep 2
  151. # more $INSTALL_DIR/readme.doc
  152.  
  153. end_it
  154.